import { isExternal } from "@web-design/ui"

const publicPath = process.env.publicPath
let baseUrl = `http://${location.hostname}:7001/api`

export const fileUrl = (path: string) => {
  if (isExternal(path)) {
    return path
  }
  return publicPath + path
}
export {
  baseUrl,
  publicPath
}